package com.oj.sort;

import java.util.Arrays;

public class ArrayCompare {
    public static void main(String[] args) {
        Integer[] arr = {10,2,9,13,1,8,8,8};
        Arrays.sort(arr, (o1, o2) -> {
            if (o1 < o2) {
                return 1;
            } else if (o1 == o2) {
                return 0;
            } else {
                return -1;
            }
        });
        System.out.println(Arrays.toString(arr));
    }
}
